from Game import Game

class JianDaoShiTouBu(Game):
    def __init__(self):
        self.quanList=["石头","剪刀","布"]
        self.result["游戏"]="裁缝铺"

    def getName(self):
        return "剪刀石头布"

    def printWelCome(self):
        print("欢迎来到裁缝铺")

    def caiJueJieGuo(self):
        if self.quanComputer == self.quanPlayer:
            self.result["结果"] = "平局"
        elif self.quanComputer == "石头" and self.quanPlayer == "剪刀" or self.quanComputer == "剪刀" and self.quanPlayer == "布" or self.quanComputer == "布" and self.quanPlayer == "石头":
            self.result["结果"] = "电脑胜"
            print("嘿嘿嘿，Siri胜")
        else:
            self.result["结果"] = "玩家胜"
            print("恭喜主人获胜")
        print(self.result)
